package com.javacoo.fastdfs.client.exception;

/**
 * FastDFS异常类
 * @author: duanyong@jccfc.com
 * @since: 2020/4/30 10:12
 */
public class JccfcFastDFSException extends Exception{
    /** 错误编码*/
    private int errorCode = 0;

    public JccfcFastDFSException(int errorCode) {
        this.errorCode = errorCode;
    }

    public JccfcFastDFSException(String message, int errorCode) {
        super(message);
        this.errorCode = errorCode;
    }

    public JccfcFastDFSException(String message, Throwable cause, int errorCode) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public JccfcFastDFSException(Throwable cause, int errorCode) {
        super(cause);
        this.errorCode = errorCode;
    }

    public JccfcFastDFSException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace,
        int errorCode) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.errorCode = errorCode;
    }
}
